package com.hrb.ssm.dao;

import com.hrb.ssm.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wyh
 * @date 2019/10/24 - 8:59
 */
@Repository
public interface AccountDao {

    @Select("select * from springaccount")
    List<Account> findAll();

    @Insert("insert into springaccount(name,money)values(#{name},#{money})")
    void saveAccount(Account account);
}
